﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConfigCopyDatabase.cs" company="">
//   
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace AdminTool
{
    using System;
    using System.Windows.Forms;

    using ExecutionTool.Profile;

    public partial class ConfigCopyDatabase : UserControl, IProfileConfigurator
    {
        #region Constructors and Destructors

        public ConfigCopyDatabase()
        {
            this.InitializeComponent();
            this.checkBoxEnableCopyDatabase.Checked = false;
        }

        #endregion

        #region Public Methods and Operators

        public void LoadProfile(Profile profile)
        {
            this.checkBoxEnableCopyDatabase.Checked = profile.Orchestration.CopyDatabase;
        }

        public void SaveProfile(Profile profile)
        {
            profile.Orchestration.CopyDatabase = this.checkBoxEnableCopyDatabase.Checked;
        }

        #endregion

        #region Methods

        private void ConfigCopyDatabase_Load(object sender, EventArgs e)
        {
        }

        #endregion
    }
}
